<?php
/**************************** SERVICE INITIALIZATION BEGINS ****************************/
require_once("../../config.php");
require_once(ML_ROOT."/service-models.php"); on_detail();

$model = isset($view_data[Protocol::MODEL]) ? $view_data[Protocol::MODEL] : NULL;
$photo_list = isset($view_data[Protocol::PHOTO_LIST]) ? $view_data[Protocol::PHOTO_LIST] : NULL;
/***************************** SERVICE INITIALIZATION ENDS *****************************/
?>

<?php
/********************************* HTML CONTENT BEGINS *********************************/
require_once(ML_INCLUDE."/header.php");
?>
	<div id="detail-profile" class="no-top">
		<h1 class="no-top">모델 상세 프로필</h1>
		<div class="main">
			<div class="thumb-overlay left">
				<img src="<?=media($model[Protocol::THUMB_B])?>" />
				<ul class="overlay-bottom">
					<li>조회수 : <span class="light-red"><?=$model[Protocol::VIEWS]?></span></li>
					<li>
						댓글 : <span class="light-red"><?=$model[Protocol::LIKES]?></span>
						추천 : <span class="light-red"><?=$model[Protocol::VIEWS]?></span>
					</li>
				</ul>
			</div>
			<div class="profile right">
				<table>
					<tr><td colspan="4"><h2 class="no-top"><?=$model[Protocol::NAME]?></h2></td></tr>
					<tr>
						<td class="label">신장 :</td><td class="data"><?=$model[Protocol::HEIGHT]?></td>
						<td class="label">나이 :</td><td class="data"><?=$model[Protocol::BIRTH]?></td>
					</tr>
					<tr>
						<td class="label">몸무게 :</td><td class="data"><?=$model[Protocol::WEIGHT]?></td>
						<td class="label">혈액형 :</td><td class="data">B</td>
					</tr>
					<tr>
						<td class="label">가슴 :</td><td class="data"><?=$model[Protocol::CHEST]?></td>
						<td class="label">취미 :</td><td class="data">댄스, 노래, 수영, 골프</td>
					</tr>
					<tr>
						<td class="label">허리 :</td><td class="data"><?=$model[Protocol::WAIST]?></td>
						<td class="label">특기 :</td><td class="data">춤, 일본어, 레이싱</td>
					</tr>
					<tr>
						<td class="label">엉덩이 :</td><td class="data"><?=$model[Protocol::HIPS]?></td>
						<td class="label">소속 :</td><td class="data"><?=$model[Protocol::AGENCIES]?></td>
					</tr>
					<tr>
						<td class="label">신발 :</td>
						<td class="data" colspan="3"><?=$model[Protocol::SHOE]?></td>
					</tr>
					<tr>
						<td class="label">지역 :</td>
						<td class="data" colspan="3"><?=$model[Protocol::LOCATIONS]?></td>
					</tr>
					<tr>
						<td class="label">태그 :</td>
						<td class="data" colspan="3"><?=$model[Protocol::TAGS]?></td>
					</tr>
					<tr>
						<td class="label">가입일 :</td><td class="data"><?=$model[Protocol::CREATED_TIME]?></td>
						<td class="label">수정일 :</td><td class="data"><?=$model[Protocol::MODIFIED_TIME]?></td>
					</tr>
					<tr>
						<td colspan="4"><?=$model[Protocol::DESCRIPTION]?></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div id="career-list">
		<h1>학력 및 경력</h1>
		<ul class="main">
			<li>2001.06 - 2003.04 새나라엔터테인먼트</li>
			<li>2001.06 - 2003.04 새나라엔터테인먼트</li>
			<li>2001.06 - 2003.04 새나라엔터테인먼트</li>
			<li>2001.06 - 2003.04 새나라엔터테인먼트</li>
		</ul>
	</div>
	<div id="photo-gallery">
		<h1>포토 갤러리</h1>
		<div class="main float-parent">
		<?php if (count($photo_list) > 0) : ?>
		<?php foreach($photo_list as $photo): ?>
			<div class="thumb-overlay">
				<img src="<?=media($photo[Protocol::THUMB_S])?>" />
				<ul class="overlay-bottom">
					<li>Likes: <span class="light-red"><?=$photo[Protocol::LIKES]?></span></li>
				</ul>
			</div>
		<?php endforeach ?>
		<?php else : ?>
			<p>No photos</p>
		<?php endif ?>
		</div>
	</div>
	<div id="friends">
		<h1>모델링크 친구</h1>
	</div>
	<div id="comment-list">
		<h1>방명록</h1>
		<ul class="main">
			<li class="comment"><ul>
				<li class="main-comment">
					<p>일반 방문자의 방명록 기록</p>
				</li>
				<li class="sub-comment">
					<p>모델 본인의 방명록에 대한 덧글</p>
				</li>
			</ul></li>
		</ul>
	</div>
	<!--
	<div id="weekly-best" class="float-parent">
		<div class="left">
			<div id="weekly-best-models">
				<h1>주간 베스트 모델</h1>
				<div class="main">
				</div>
			</div>
			<div id="weekly-new-models">
				<h1>주간 베스트 포토</h1>
				<div class="main">
				</div>
			</div>
		</div>
		<div id="weekly-best-photos" class="right">
			<h1>인기 모델 톡!</h1>
			<ul class="main">
			</ul>
		</div>
	</div>
	-->
<?php
require_once(ML_INCLUDE."/footer.php");
/********************************** HTML CONTENT ENDS **********************************/
?>